import parole
from parole.colornames import colors
from parole.display import interpolateRGB
import pygame, random

import sim, main
from util import *
from dungeon import makeFloor, Room, TemplateRoom
import dungeon

template = \
"""
###############
####   ** *####
##  *  ########
# *  *     *###
# *   * **   ##
###  *  * *   #
##  *  * * *  #
# *     *     #
#*   ##   # * #
###############
"""[1:]

legend = {         
    '*':    dungeon.thingGenerator('lights', 'fungus'),

    '#':    dungeon.rockGenerator(colors['Gray']),
}

floorColor1 = colors['SandyBrown']
floorColor2 = colors['SaddleBrown']
floorName = 'dirt floor'
mixture = 0.6

diggable = [
    (11,0),
    (0,8),
    (12, 8), 
]

class FungiGrowth(TemplateRoom):
    def __init__(self, pos):
        TemplateRoom.__init__(self, template, legend, diggable, pos,
                floorColor1, floorColor2, mixture, floorName)


roomClass = FungiGrowth

